package com.situ.crm.service;

import com.situ.crm.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.situ.crm.util.LayUITableResult;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Gao
 * @since 2021-11-03
 */
public interface IUserService extends IService<User> {

    List<String> selectRolesByUserName(String name);

    List<String> selectPermissionsByUserName(String name);

    LayUITableResult selectByPage(Long page, Long limit);

    void insert(User user, String roles);

    void deleteById(Integer id);

    Map<String, Object> selectUserAndRoles(Integer userId);

    void update(User user, String roles);
}
